Postgres Find String Python Replace List