M=matrix([[A,B],[C,D]])
M.transpose()
M
 if B==C 
  print "the above matrix is symmetric"