Postgres Set Variable Python Print Dictionary As Table