Fixed the IDL binning routines called by Python