Postgres Use Variable In Soql For Contains In Python