code: def transformChildrenToNative(self):
          for childArray in (self.contents[k] for k in self.sortChildKeys()):
              for child in childArray:
                  child = child.transformToNative()
                  child.transformChildrenToNative()