Big optimizations in PHOG.py are afoot