sublist is an string '\n%s<ul>\n%s\n%s</ul>\n%s', where every '%s' is replaced with indent, sublist, indent and indent, respectively.
sublist = '\n%s<ul>\n%s\n%s</ul>\n%s' % ( indent , sublist , indent , indent )