code: def write(self, content):
          
          with io.open(self.target, 'w', encoding='utf-8') as fp:
              fp.write(content)
              if not content.endswith(u'\n'):
                  fp.write(u'\n')
docs: Save content on disk