def make_member_list(members, **attr_map):
 def _fetch_memb(memb, attr_map):
  return dict([(k, memb[v]) for (k, v) in attr_map.items() if (v in memb.keys())])
 return [_fetch_memb(memb, attr_map) for memb in members]

def make_member_list ( members , ** attr_map ) : def _fetch_memb ( memb , attr_map ) : return dict ( [ ( k , memb [ v ] ) for ( k , v ) in attr_map . items ( ) if ( v in memb . keys ( ) ) ] ) return [ _fetch_memb ( memb , attr_map ) for memb in members ]
create a dict representation of a list of members which we can use to serialize the members list .