Add work-around for python2.6 version of gzip.