fixed some pylint warnings