Fix pr enum

enums not cleaned yet.
However, we're almost there: all the secondary fake steps are now implemented in python.
Only the histogram filling is still in cpp. This still needs to be cleaned up, but now it's easy to see from the python code what are the histograms that are needed, and the ones that are not.
Major cleanup.