def gen_parents(*parents):
    """Generate section with list of parent objects"""
    fmt = '<li>{}: <a href="/{}?{}">{}</a>'
    data = [fmt.format(p[0], p[0],
                       '&'.join(['='.join(e) for e in p[1]]),
                       p[2])
            for p in parents]
    return '<h2>Parent objects</h2><ul>{}</ul>'.format(''.join(data))