Postgres Find String Python Definition