I think you can use gzip library to read a zipped file in python.
Try the following code:
import gzipwith gzip.open(wv.inpfile, 'rb') as fin: for line in fin: #you record should be in line