def cleanup(self):
        outfiles = list(self.get_output_files(sticky=False))
        log.debug("Tool cleanup check files: %s", outfiles)
        for outfile in outfiles:
            if exists(outfile):
                log.warning("Tool cleanup! Removing: %s", outfile)
                if os.path.isfile(outfile):
                    remove(outfile)
                elif os.path.isdir(outfile):
                    shutil.rmtree(outfile)
Object type comparisons should always use isinstance() instead of
dataset/ETHPy150Open thasso/pyjip/jip/tools.py/Tool.cleanup--crossover with--dataset/ETHPy150Open kivy/plyer/plyer/tools/pep8checker/pep8.py/comparison_type