Postgres Find String Python Replace Function In List