python sqlite3 cursor close