Hello @Doosheck
You may find a possible solution in this recent post; the scripting of input/output port reference, changed from deprecated nodes.
BR