Postgres Set Variable Python Print Without Newline