You can also use the transform, if you want position, rotation, and scale copied:
# local transform (relative to parent node) copy
object1.transform = object2.transform
# global transform (relative to world origin) copy
object1.global_transform = object2.global_transform