My scene consists of a Null, key-framed rotation on itself, with a cube as child. The cube is translated at (6,0,0) and has a key-framed rotation along the x-axis.
What I would like is to bake or compress (not sure of the right term here) the transform hierarchy. The end result is the cube, moving exactly like when it was the child of the Null, with the offset, but now, it's not the child of the Null any more.
And if there's a way to do it with Python, that would be a must!
Another trick for the limited case would be to change the origin of the cube's mesh to be where the empty used to be and then rotate the cube.