NetworkInterface.
list_levels
Get a list of element levels, sorted ascending by their depth.
In a standard installation:
levels[0] == "Model" levels[1] == "Unit" levels[2] == "Element"
The GST API Python module