[Numpy-discussion] efficient use of numpy.where() and .any()