def METHOD_NAME(self):
    global debuglevel
    if os.path.exists(HYST_DEBUG_FILE):
        debuglevel = debuglevel | HYSTDEBUG | HYSTERROR
    else:
        debuglevel = debuglevel & ~(HYSTDEBUG | HYSTERROR)