def __instancecheck__(cls, instance=None):
    """ Make elements of super classes to be instances of this class.
        """
    icls = type(instance)
    return cls in icls.__mro__ or icls in cls.__mro__
