Writing Numpy Array Indexing Python