fix some pylint warnings