def _colorama(*args, **kwargs): """Temporarily enable colorama.""" colorama.init(*args, **kwargs) try: yield finally: colorama.deinit()