def convert_kvp_list_to_dict(kvp_list):
 if (kvp_list == ['True']):
  return {}
 kvp_map = {}
 for kvp_str in kvp_list:
  (key, value) = convert_kvp_str_to_list(kvp_str)
  kvp_map.setdefault(key, set())
  kvp_map[key].add(value)
 return dict(((x, list(y)) for (x, y) in kvp_map.iteritems()))

def convert_kvp_list_to_dict ( kvp_list ) : if ( kvp_list == [ 'True' ] ) : return { } kvp_map = { } for kvp_str in kvp_list : ( key , value ) = convert_kvp_str_to_list ( kvp_str ) kvp_map . setdefault ( key , set ( ) ) kvp_map [ key ] . add ( value ) return dict ( ( ( x , list ( y ) ) for ( x , y ) in kvp_map . iteritems ( ) ) )
convert a list of key=value strings to a dict .