def my_format_warning(message, category, filename, lineo, line=None):
    """
    Override the default showwarning to customize the appearance of warnings
    :return:
    """
    return '\nWARNING %s: %s\n\n' % (category.__name__, message)
