Python Parenting

I need to copy the rotation and location of object A to object B in a python script. Object A would be parented to a dynamic object C.
Any help?

code runs on object B

import GameLogic as g
o = g.getCurrentController().getOwner()

Thank you!
This will no doubt work very nicely!