A little of tinkering with the package has shown me you can list all the files under the tar file and you could extract them individually. Without more information on what you want to do with the files afterwards (i.e. where or how you want to upload them) I cannot help on that end.
You can cycle through your files like so:
import tarfile
with tarfile.open("path/to/file.tar.gz", "r") as file:
for each in file.getnames():
print(each)
file.extract(each)
At the last stage the individual file has been extracted and will be sitting in your current working directory, you can hence do something with it
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…