How To Loop Over Numpy Array Reshape