code: def write(self, name, path='./'):
          
          byte_object = self.generate()
          file_name = '{0}.tar.gz'.format(name)
          if not path.endswith('/'):
              path += '/'
          f = open('{0}{1}'.format(path, file_name), 'wb')
          f.write(byte_object.getvalue())
          f.close()
docs: Like ``generate`` but writes to disk.
  
          :param name: file name, the tar.gz extension will be added automatically
          :param path: directory where the file will be written to, defaults to ``./``
          :returns: None