fix some pylint issues