added python entropy function using histogram approach and a nice generalized n-dimensional histogram