Add virtual port 
Add virtual port 

The python script actually only calls an app called socat. I could not find another way to do this.
I also added some options I have in my script.
Feel free to modify, add or eliminate anything.
waterlinked/examples