def colorize_logger(logger, stream=None, level=logging.DEBUG):
    """resets the handlers and formatters in a given logger, and sets it up with Colorful() logs
    """
    logger.handlers = []
    logger.filters = []
    stream = stream or sys.stderr
    handler = logging.StreamHandler(stream=stream)
    handler.setLevel(level)
    handler.setFormatter(Colorful())
    logger.addHandler(handler)
    return logger
resets the handlers and formatters in a given logger, and sets it up with Colorful() logs