The more pythonic way of writing this is 

    aeff_hist, _, _ = np.histogram2d(...)

This way, the two unused return arguments (`xedges` and `yedges`) are both assigned to the variable named `_`. Since no-one in their right mind would ever call a variable `_` in python, it is as if they were never assigned.