1003285 - addresses python 2.6/2.7 compat issue with fp.closed on gzip file pointers.