writepy(pathname, basename='', filterfunc=None)
Search for files *.py and add the corresponding file to the archive.
If the optimize parameter to PyZipFile was not given or -1, the corresponding file is a *.pyc file, compiling if necessary.
If the optimize parameter to PyZipFile was 0, 1 or 2, only files with that optimization level (see compile()) are added to the archive, compiling if necessary.
If pathname is a file, the filename must end with .py, and just the (corresponding *.py[co]) fi