Postgres Set Variable Python Print Dictionary Value