fix some things that pylint pointed out