pylint warnings corrected