Abaqus - Python script for getting the shell thickness of all lay-ups in the model

Hi,
Anyone who know how to iterate all lay-ups in the model and print the total shell thickness for each lay-up?. It would be very convenient to have a Python script for doing this task. I have looked into the MdbPlyStackPlot object but is not able to use this object for the purpose.

Abaqus ​​​​​​​