class Meta(type):

    def __new__(cls, clsname, bases, dct):
        bases = tuple(dct.pop('bases'))
return type.__new__(cls, clsname, bases, dct)
How do I concatenate many objects into one object using inheritence in python? (during runtime)