The Python script supports SSO login by starting a local HTTP server that waits for the loginToken. The helper for the Python script can be found over here.
We'll likely want an in-process server instead.