Dict cursors in psycopg2