Private Sub Start
Py.Initialize(Me, "Py")
Dim opt As PyOptions = Py.CreateOptions("Python/python/python.exe")
Py.Start(opt)
Wait For Py_Connected (Success As Boolean)
If Success = False Then
LogError("Failed to start Python process.")
Return
End If
PrintPythonVersion
'When possible, kill the python process before exiting:
Sleep(500)
CloseProgram
End Sub