Python 3d Histogram