close zipoutputfp at line 409. without the fix, cannot write the document properly using pypy