Fixed some pylint violations.