Removed some pylint warnings