def _generate_unset_tags_in_subtree(self):
    for (i, member) in enumerate(self.members.values(), start=1):
        if (member.tag is None):
            member.tag = str(i)
        if isinstance(member, Section):
            member._generate_unset_tags_in_subtree()
def _generate_unset_tags_in_subtree(self):
    for (i, member) in enumerate(self.members.values(), start=1):
        if (member.tag is None):
            member.tag = str(i)
        if isinstance(member, Section):
            member._generate_unset_tags_in_subtree()