“cmd.matrix_copy” copies a transformation matrix from one object to another.
def matrix_copy(source_name='', target_name='',
source_mode=-1, target_mode=-1,
source_state=1, target_state=1,
target_undo=1, log=0, quiet=1):