def dump_schema(self, schema): print('Writing schema json to file') with open(self.json_file, 'w') as f: json.dump(schema, f, indent=4) # templates