fix pylint warnings