Python Calculating-histograms Resources