def setAttributeDictionaryToMatrix(attributeDictionary, matrix4X4):
 matrixTetragrid = getIdentityMatrixTetragrid(matrix4X4.matrixTetragrid)
 for row in xrange(4):
  for column in xrange(4):
   key = getMatrixKey(row, column)
   attributeDictionary[key] = str(matrixTetragrid[row][column])

def setAttributeDictionaryToMatrix ( attributeDictionary , matrix4X4 ) : matrixTetragrid = getIdentityMatrixTetragrid ( matrix4X4 . matrixTetragrid ) for row in xrange ( 4 ) : for column in xrange ( 4 ) : key = getMatrixKey ( row , column ) attributeDictionary [ key ] = str ( matrixTetragrid [ row ] [ column ] )
set the attribute dictionary to the matrix .