Postgres Use Variable Inside String Python Example