new python and sqlite3 bug fix, resolves #189