Handle struct.error from GzipFile.read() (Python bug?)