This would be better as re.findall to output a list of all files for debug (or compress=False) mode.