In the python API, I would like to find the x and y positions of soil section in g_i.soils in order to set water levels on each side of a retaining wall.

In the API I can set a water level to a section as part of g_i.soils, however due to the presence of reinforcement I can't always know what the index is for soil on the left and soil on the right. Knowing the y position of each object in g_i.soils would help massively, but was also wondering if there's a better way to set the water levels for each side of the wall.