Python Matrix Dot Product Matlab