Accessing Numpy Two Dimensional Array using while Loop in Python