def maptag(tagname, contents):
    """Returns the HTML produced from enclosing each item in
    `contents` in a tag of type `tagname`"""
    return u''.join(tag(tagname, item) for item in contents)
Returns the HTML produced from enclosing each item in
    `contents` in a tag of type `tagname`