implement batch entropy in python

"for each column in to_samples"?