Parenting and Unparenting in OpenMaya?

Hi there!
Would be possible to help me?
In fact the reparentNode and addChild works reparenting and parenting… but there is some way to keep the node at the same place? Im sending my code:

q1 = getMObject("locator1")
q2 = getMObject("locator2")

p = new_om.MFnDagNode(q1)
p.addChild(q2)

u = new_om.MDagModifier()

u.reparentNode(q2)
u.doIt()

thanks a lot!