code: def write(self, ontol, **args):
          
          s = self.render(ontol, **args)
          if self.outfile is None:
              print(s)
          else:
              f = open(self.outfile, 'w')
              f.write(s)
              f.close()
docs: Write a `ontology` object