Fixed some pylint errors