Fix some pylint warnings.