def div(format, data):  # HTML formatting utility function
    """Wraps 'data' inside a div of class 'format' for HTML printing."""

    d = '<div class="{}">{}</div>'  # Basic div template
    return d.format(format, data)