Creating PIpe from Connectors

I was hoping someone could give me a hand with the Python script to create pipes from the connectors.

I’ve got the script to gather up all the connectors I want but I could do with the script just to create a new run of pipe between a set of connectors.

Normally I would wrestle with it until I figured it out but it could save me hours on a project and deadlines being deadlines I don’t have the time to figure it out.

 

Thanks,