Postgres Use Variable Inside String Python Functions With Arguments