Close the archive file. You must call close() before exiting your program or essential records will not be written.
They are referring to the end-of-central-directory information. if the program quits soon enough, zipfile will close the file for you, and add this information. However, if you are writing the file to a StringIO or doing other unusual things, the file will be surprisingly incomplete.