How can I fix this?
Since this is the question that you actually asked, there is an easy answer. Investigate the problem in detail, understand the source code of the zipfile module, and the format of zip files, and develop a change to the code to correct the behaviour. Then submit a patch to sf.net/projects/python.
Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list