class M_B(type):
    pass


class A(object, metaclass=M_A):
    pass


class B(object, metaclass=M_B):
    pass


class C(A, B):
    pass
python 3: TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases