Sql Update String Code In Python