shutil.copyfile(pastfile,newfile)
for f in filelist: a = f[:-6] shutil.copyfile(f, a+'HC.pkl') print(a+'HC.pkl')