import zmq
import sys
context = zmq.Context()
socket = context.socket(zmq.REQ)
socket.connect("tcp://127.0.0.1:3999")
msg=""
for a in sys.argv[1::]:
	msg += "%s " %a
socket.send(msg)
reply = socket.recv()
print("> %s" %reply)


@@ -15,16 +15,104 @@
 ort sys%0A
+%0Aif len(sys.argv) %3C 3:%0A    print(%22Usage: %25s %3Ccontrol_port%3E %3Cargs...%3E%22)%0A    sys.exit(1)%0A%0A
 context 
@@ -159,16 +159,20 @@
 zmq.REQ)
+    
 %0Asocket.
@@ -200,13 +200,24 @@
 0.1:
-3999%22
+%25s%22 %25sys.argv%5B1%5D
 )%0Ams
@@ -239,17 +239,17 @@
 ys.argv%5B
-1
+2
 ::%5D:%0A%09ms
@@ -322,9 +322,26 @@
 %25reply)%0A
+context.destroy()
 %0A

Extend control.py with help and port specification