pylint err reduction