minor pylint-inspired clean up