Fixed some pylint violations