2D- Bounding box around human model with sub meshes and armature
You can use this addon made by @sambler's answer found here, which creates a bounding box for the selected objects. So you can select both armature and mesh in your script and modify the addon to get the bounding box data without creating the bounding box cube.