Matching group Dimensions in Blender with Python
This is the process that worked for me.
I basically just select all objects of type MESH and join them. Then I remove all objects of type EMPTY that might be parented to the mesh (eventually normalising the transforms with transform_apply(location=False, rotation=True, scale=True)).
From there it becomes very easy to programmatically manipulate the object.