gnumpy conditional indexing workaround