I have added an os.remove(z) to remove the generated .zip files