various minor pylint fixes