python sqlite3 connection with statement