import os import shutil import string def process(sp, dp) : fr = open(sp, 'rb') fw = open(dp, 'wb') in_files = False in_filter = False in_file = False in_fconfig = False for l in fr : if l.find('') != -1 : in_filter = False continue elif l.find('') != -1 : in_fconfig = False fw.write(l) continue elif l.find('') != -1 : in_files = False fw.write(l) continue elif l.find('') != -1 : in_file = False fw.write(l) continue elif l.find('