Add 2 function hist2pan(), hist2sam() in hist.py