def make_expando(primitive):
 if isinstance(primitive, dict):
  return Expando(primitive)
 elif isinstance(primitive, SEQS):
  seq = type(primitive)
  return seq((make_expando(attr) for attr in primitive))
 else:
  return primitive

def make_expando ( primitive ) : if isinstance ( primitive , dict ) : return Expando ( primitive ) elif isinstance ( primitive , SEQS ) : seq = type ( primitive ) return seq ( ( make_expando ( attr ) for attr in primitive ) ) else : return primitive
creates an expando object .