Ghpythonlib.components flattened tree problem


I’m struggling with ghpythonlib:
I’m trying to recreate “Point Groups” node in ghpython, but the result I’m getting is a flattened list, though what i actually need is a tree structure… I think I may not know some basic data transfer things there?
Please help. (18.9 KB)