Take a stab at gzipping some information through the gzip library like this...
content = "Lots of content here"
f = gzip.open('Onlyfinnaly.log.gz', 'wb')
Then try to execute your code as posted..
This technique worked for me concerning some explanation the gzip library neglects to read a few records.
Want to become a expert in Python? Join the python course fast!
For more details, do check out the below video tutorial...