This was copied from np.apply_over_axes.  I assume "pepify" will fix this in both places.