f_obj = open('file.gz', 'r')
io_obj = io.open(f_obj.fileno(), encoding='UTF-8')
gzip_obj = gzip.GzipFile(fileobj=io_obj, mode='r')
Generic way to open (possibly gzipped) file with specific text encoding in python