def map(func):
 if (is_py2 and (text == func)):
  func = unicode
 def expand_kv(kv):
  return func(*kv)
 def map_values(value):
  cls = type(value)
  if isinstance(value, dict):
   return cls(_map(expand_kv, value.items()))
  else:
   return cls(_map(func, value))
 return transform(map_values)

def map ( func ) : if ( is_py2 and ( text == func ) ) : func = unicode def expand_kv ( kv ) : return func ( * kv ) def map_values ( value ) : cls = type ( value ) if isinstance ( value , dict ) : return cls ( _map ( expand_kv , value . items ( ) ) ) else : return cls ( _map ( func , value ) ) return transform ( map_values )
concurrently converts a list of requests to responses .