def zipdir(path, ziph):
for root, dirs, files in os.walk(path):
for file in files:
ziph.write(os.path.join(root,file))
zipf = zipfile.ZipFile('field/test17.zip', 'w', zipfile.ZIP_LZMA)
zipdir('S:\Folder1\Folder2', zipf)
zipf.close()