Python Sqlite3 With Database(name) Do: …

This is a small wrapper that allows to use pythons with statement on a sqlite3 database:

Use it like this: