fixed hf.py bug in binning
fix for pdf weights in convert.py