Worked on python version of matrixmath