can this for loop be expressed as `data[booleans[indices] == True] = 0`? 

...given the nature of cython, I'm not sure if these would or wouldn't be possible or more efficient...