Allow Mean, Median, and Peak to be calculated for a subrange of the histogram
Fixes for Python 3
Merge branch 'dev'