Load from library and keep relationships

I recently wrote into a script some code that loads objects and actions from other .blend files. However, when I load objects that have a parent/child relationship, that relationship is not loaded with the objects. In addition, the target object information of action modifiers is left blank (though the rest of the action modifier is loaded with the object). Is there a way to keep parent/child relationships of loaded objects, and a way to load the whole action modifier, with target object information in tact?

I should say that I am using Blender 2.49b. I am not sure if I should use the Library module or the LibData module. I have found that loading objects in Library and then using Library.Update() properly inputs the data of the object modifiers. However, it still does not update parent/child relationships.