...
As you have already seen, ecFlow has a ecFlow Python Api: (for both python2 and python3)
#!/usr/bin/env python2.7
import ecflow
This allows the suite definition to be built with python.
It also allows communication with the ecflow_server.
...