Postgresql Convert Date To String Python Definition