Python 2 7 Numpy Where Function In A 3 D Array Producing Unexpected Output Stack Overflow

Python 2 7 Numpy Where Function In A 3 D Array Producing Unexpected Output Stack Overflow