fixed pylint warnings