how to i disable and re-enable console logging in python?,logging.critical('This is a critical error message')