pratt.py: clean-ups in class ifelse