fixing inspection of the closed state of gzip files so it will work unde...

...r python 2.6