Add format_hist to PyROOTUtils.py