Fix some pylint errors.