Add safety guard for pylint.