basename, ext = os.path.splitext("a.tar.gz")
ext = ".gz"
update code ".tar.gz" to ".gz"