Hangers Pynthon into Dynamo

Hi,
Its is possible create parametric piping supports into dynamo? And then convert to Python script??

Thank you so much!!

Romualdo