def remove(self): Builder.remove(self) for fn in os.listdir(self.cache_path): if len(fn) > 8 and ".py_fini" == fn[:8]: os.remove(os.path.join(self.cache_path, fn))