Finally got HistogramRatio.py script to work properly.