Psycopg2 Escape Percent