catch pylint return code