improved the pylint wrapper to count errors