Fix some pylint errors to fix the build.