class deprecated_base_class(framework_meta):

    def __new__(meta, name, bases, attrs):
        for b in bases:
            if isinstance(b, deprecated_base_class):
                pass
Deprecate usage of a class as a parent class in Python