code: def elements_as_text(self, elems, indent=2):
          
          assert elems
          text = ""
          for elename, eledesc in elems.items():
              if isinstance(eledesc, dict):
                  desc_txt = self.elements_as_text(eledesc, indent + 2)
                  desc_txt = ''.join(['\n', desc_txt])
              elif isinstance(eledesc, str):
                  desc_txt = ''.join([eledesc, '\n'])
              else:
                  assert False, "Only string or dictionary"
              ele_txt = "\t{0}{1: <22} {2}".format(' ' * indent, elename,
                                                   desc_txt)
              text = ''.join([text, ele_txt])
          return text
docs: Returns the elems dictionary as formatted plain text.