How to fix TypeError: 'autocommit' unexpected keyword argument in Python sqlite3

So there I was, writing a quick script to churn through an array of items and throw them into a local SQLite database. Standard stuff. Because I didn’t want the script to crawl at a snail’s pace by writing to the disk on every single loop iteration, I decided to do the sensible thing: turn off autocommit mode and just batch-commit the whole thing at the end. I confidently typed out the connection…