Fixed some pylint failures