Combine python script and dynamo script

so please share an image here that can be read properly, you can use the button symbol of screenshot of Dynamo

you got that passthrough function already in the script, the package node can be replaced by the code I proposed: