def normalize_fieldsets(fieldsets):
 result = []
 for (name, options) in fieldsets:
  result.append((name, normalize_dictionary(options)))
 return result

def normalize_fieldsets ( fieldsets ) : result = [ ] for ( name , options ) in fieldsets : result . append ( ( name , normalize_dictionary ( options ) ) ) return result
make sure the keys in fieldset dictionaries are strings .