I am writing into a compressed file using the gzip module of Python3.7 and then renaming that file. The expectation here is it should rename the actual name of the file as w