transpose of a matrix in python using function