Numpy Matrix To Array Flatten