class A(object, metaclass=M_A):
    pass


class B(object):
    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