The Python interfaces are also scriptable using a Python connection object. A scriptable Python connection object can be obtained using the Python Connect() function.
PythonConnection = Python Connect();
x = PythonConnection << Is Connected;
// return 1 if a Python connection is active. Otherwise, returns 0.
Show( x );
PythonConnection << Disconnect;