@classmethod
def clear_instance(cls):
    """unset _instance for this class and singleton parents.
        """
    if not cls.initialized():
        return
    for subclass in cls._walk_mro():
        if isinstance(subclass._instance, cls):
            subclass._instance = None
