pymel.util.common.toZip

toZip(directory, zipFile)

Sample for storing directory to a ZipFile