Hi!
I took a look at your problem. From what I could find in the documentation and when looking at the nodes it seems that the relocate object is basically just a transform node that feeds its Xform Matrix into the OffsetMatrix of the Clip and the Root object feeds its Message Attribute into the root Obj Attribute of the Anim Clip.
However whenever I tried to connect the Message Attribute by hand or via code it just kept crashing my Maya, so there needs to be som connection I'm missing.
But there is another way to trigger the command using the mel.eval command. This command takes a string from a python program and exectues it in the MEL interpreter.
import maya.mel as mel
mel.eval('teCreateRelocator(-1)')
This script will just run the createRelocator command from the Time Editor. Sadly the only way of feeding it the clip it needs to create a relocator for is by selecting it. So you will need to add some code to select the correct clip before this part of the programm runs.
This command also does not return a value, so you will have to define the variable to further use the relocator by using string formating.
So a script to move a clip to 0,0,0 would look something like this:
import maya.cmds as mc
import maya.mel as mel
c = "anim_Clip1.clip[0]"
mc.select(c)
mel.eval('teCreateRelocator(-1)')
rL = c[:-8] + "_Relocator"
mc.xform(rL, t= (0,0,0), ws = True )
Obviously all of this isn't really nice programming because of the reasons mentioned above, but it works...
I hope this helps!