python iterate through dictionary and change values