fix some pylint complaints