Python matrix data type