def decclassdebugging(cl):
    """
    decorator for debugging classes.
    It allows to trigger specifically which method in a class will be observed.
    if debug(self) : " where debug is needed
    After instantiation of the class, add class.method_name_debug = True to activate the debugging.
    """
    for m in dir(cl):
        if len(m.split('__')) == 1:
            setattr(cl, m + '_debug', False)
    return cl
