MRG: pythonized HistFactory

This PR has been a long time coming...