def cull ( filepath ) : file = open(filepath, 'rb') html = file.read() file.close() p = re.compile(r'', re.IGNORECASE) if p.match(html): return else: fileList.remove(filepath)