Postgres Set Variable Python Print Dictionary Entry