code: def saveTopicPageDefinitionToFile(self, fname):
          
          open(fname, "w", encoding="utf-8").write(json.dumps(self.topicPage, indent = 4, sort_keys = True))
docs: save the topic page definition to a file