class FakeBase(object):
    pass


class C(FakeBase):
    pass

def c_factory():
    for base in (A, B):
        if base not in C.__bases__:
            pass
How do I dynamically add mixins as base classes without getting MRO errors?