Using from Python (Docs?)

I found a little nugget at Start and stop mitmproxy from Python script