gzip_and_name()
Gzip file if requested.
fname (str) – path to file
gzip_file (bool, optional) – whether to gzip the file
up-to-date filename
str