class Meta(type):

    def __new__(cls, clsname, bases, dct):
        bases = tuple(dct.pop('bases'))
return type.__new__(cls, clsname, bases, dct)


class bigclass(metaclass=Meta):
    pass
bases = l
print(bigclass.__bases__)
How do I concatenate many objects into one object using inheritence in python? (during runtime)