how to update element in python dictionary