def transform_params(parameters):
 transformed_parameters = {}
 for (key, value) in iteritems(parameters):
  if isinstance(value, (list, tuple, set)):
   value = [convert_boolean(param) for param in value]
   transformed_parameters[format_name(key)] = value
  elif (value is not None):
   transformed_parameters[format_name(key)] = convert_boolean(value)
 return transformed_parameters

def transform_params ( parameters ) : transformed_parameters = { } for ( key , value ) in iteritems ( parameters ) : if isinstance ( value , ( list , tuple , set ) ) : value = [ convert_boolean ( param ) for param in value ] transformed_parameters [ format_name ( key ) ] = value elif ( value is not None ) : transformed_parameters [ format_name ( key ) ] = convert_boolean ( value ) return transformed_parameters
transform parameters .