Fix pylint warnings from newer pylint version.