assume_sorted is not implemented on old scipy