Fixed some pylint warnings.