def destroy_all_models_in_dict(target_dict):
        """ Method runs the prepare destruction method of models 
            which are assumed in list or tuple as values within a dict
        """
        if target_dict:
            for model_list in target_dict.values():
                if isinstance(model_list, (list, tuple)):
                    for model in model_list:
                        model.prepare_destruction()
                        if model._parent:
                            model._parent = None
                else:
                    raise Exception("wrong data in clipboard")
def destroy_all_models_in_dict ( target_dict ) : if target_dict : for model_list in target_dict . values ( ) : if isinstance ( model_list , ( list , tuple ) ) : for model in model_list : model . prepare_destruction ( ) if model . _parent : model . _parent = None else : raise Exception ( "wrong data in clipboard" )
Method runs the prepare destruction method of models 
            which are assumed in list or tuple as values within a dict