zfile.writestr(fname, contents)


class OutZipfile(webapp.RequestHandler):

    def get(self):
        self.response.headers['Content-Type'] = 'application/zip'
self.response.headers['Content-Disposition'
    ] = 'attachment; filename="outfile.zip"'
with closing(ZipFile(self.response.out, 'w', ZIP_DEFLATED)) as outfile:
    addResource(outfile, 'https://www.google.com/intl/en/policies/privacy/',
        'privacy.html')
addResource(outfile, 'https://www.google.com/intl/en/policies/terms/',
    'terms.html')
Is it possible to generate and return a ZIP file with App Engine?