Postgres Set Variable Python Print Dictionary