fix some pylint errors