import osimport glob
folder = './wav'
for i in glob.glob(folder + "/" + "*.tar.gz"): #print(i) os.system("sudo tar xvf %s -C untar" %(i))