Reading out CDB data with python

I am trying to pull data out of CDB with python, however somehow i do not pull the right data. I am by no means an experienced coder, just a civil engineering student working on a project, but I thought maybe someone here could help me out.
I have a composite section composed out of steel and concrete parts and I am trying to read out the area of each part.
As you can see the data I’m looking for is stored in SECT_PAR (material 1 is steel, 4 is concrete).



I used the following code to try to get out:
I use a similar function to read out the stresses which does work as intended.

However, the code returns me the Area stored in SECT instead for the steel part and nothing for the concrete part. The section itself has material number 1 (steel) aswell, so thats probably why it gives nothing for concrete, but stil the area stored in SECT is not the sum of the the sum of the (correct) areas of steel and concrete, so what does the area in SECT even represent?
I use a similar function to read out the stresses which does work as intended.


the Section is coded as follows in Teddy if that is any help.

So I did some more looking into it, and it seems that for any class CSECT_XXX.m_xxx the functions return the value of CSECT first row on the same position.
for example:
-If I call CSECT_PAR.m_a, a is the 4th value in a CSECT_PAR row, but I get the 4th value of the CSECT first row instead.
-If I call CSECT_PLA.m_wpvy, wpvy is the 5th value in a CSECT_PLA row, but I get the 5th value of the CSECT first row instead.
-etc etc

I’m not sure what to do to get the right values out. Hopefully someone with more coding knowledge can assist me.