Converting GUID list to a joined Mesh

I am very new to grasshopper and I am trying to create a sierpinski pyramid. Using this python script code I have figured out how to create the pyramid, but the outcome of this code is a list of GUID’s (if I am correct). However, I don’t want to end up with the pyramid but with the frame/outline of the pyramid. I only know how to do this with a mesh.

Is there a way to make the outcome of this code a mesh? or is there another way to work with this list of GUIDs to create the frame/outline I want?

The first picture is the pyramid I have right now and the second picture is the type of structure I want.
guid problem rhinocode.txt (892 Bytes)