python sqlite3 headless server