'Write data into the archive.'

def save(self, filename, as_template=False):

    archive = ZipFile(filename, 'w', ZIP_DEFLATED, allowZip64=True)
    self.write_data(archive, as_template=as_template)
    archive.close()
