Debugging prints, label is suddenly <type 'numpy.float64'>

should be <type 'long'>

IndexError: arrays used as indices must be integer (or boolean)