Fix warnings from new pylint version.