def matrix_transpose(m):
   """
   Calculate the transpose matrix, in the finite field,m

   Parameters:
   m(list): Matrix

   Returns:
   trans(list): Transpose of m
   """

   trans = []
   for col in range(len(m[0])):
      aux = []
      for row in range(len(m)):
         aux += [m[row][col]]
      trans += [aux]
   return trans