def wrap_things(*things):
 if (not things):
  return []
 wrapped = [Wrapped(thing) for thing in things]
 if hasattr(things[0], 'add_props'):
  things[0].add_props(c.user, wrapped)
 return wrapped

def wrap_things ( * things ) : if ( not things ) : return [ ] wrapped = [ Wrapped ( thing ) for thing in things ] if hasattr ( things [ 0 ] , 'add_props' ) : things [ 0 ] . add_props ( c . user , wrapped ) return wrapped
instantiate wrapped for each thing .