import os,sys
a=[]
b=[]
c=[]
n=sys.argv[1]
with open('finishTile_16_'+str(n)+'.txt') as f:
a=f.readlines()
with open('temp_part_file/temp_file_'+str(n)+'.part') as fb:
b=fb.readlines()
os.rename('temp_part_file/temp_file_'+str(n)+'.part','temp_part_file/temp_file_'+str(n)+'.part.old')
c=[i for i in b if i not in a]
with open('temp_part_file/temp_file_'+str(n)+'.part','w') as fc:
for i in c:
fc.write(i)