Windowsでtargzファイルを展開したいなあと思っていたところ、以下のやり方でできるようなので記録しておきます。
extract_from_targz.py
import tarfile
import sys
args = sys.argv
with tarfile.open(args[1], "r:gz") as file:
file.extractall(path=args[2])
file.close()
>python extract_from_targz.py <targzファイル名> <展開後のディレクトリ名>