If you are using our full stack the protocol to go is GMP which is a XML protocol over Unix Domain Sockets or TLS. For Python there is an library (python-gvm) and a tool (gvm-tools) abstracting the protocol. Of course with GMP you can modify tasks and lunch scans.