Postgresql Convert Date To String Python Replace Part