"AttributeError: 'NoneType' object has no attribute 'Connect'
means that the variable
node1out is a NoneType; it is not what you think it is. That means that
node1.AddPort() has returned
AddPort() has returned
None, I don't know. I can only speculate that one has to construct a more complex