def _MakeOptional(property_dict, test_key):
 for (key, value) in property_dict.items():
  if test_key(key):
   property_dict[key]['required'] = False
 return property_dict

def _MakeOptional ( property_dict , test_key ) : for ( key , value ) in property_dict . items ( ) : if test_key ( key ) : property_dict [ key ] [ 'required' ] = False return property_dict
iterates through all key/value pairs in the property dictionary .