Moving Animation with object

I think the question is very clear.
If use bpy.ops.object.anim_transforms_to_deltas() its work just after one keying sets
If you can give me some purpose to make it i have already begun to do that.i work in script and source depend on whats need