code: def write(self, filename, encoding='utf-8'):
          
          with io.open(str(filename), 'w', encoding=encoding) as fp:
              for entry in self:
                  fp.write(entry.__unicode__())
                  fp.write('\n\n')
docs: Write the list of entries to a file.
  
          :param filename:
          :param encoding:
          :return: