[python] Python SQLite: database is locked