Numpy 2d Array Replace Values By Index