def as_dict(self, replace_value_names=True):
<EOL>r = RootSectionTerm(doc=self)<EOL>for s in self:  <EOL><INDENT>for t in s:  <EOL><INDENT>r.terms.append(t)<EOL><DEDENT><DEDENT>return r.as_dict(replace_value_names)<EOL>
Iterate, link terms and convert to a dict