Python Numpy Ndarray To Matrix Test