Public Sub RunCommand (Command As String) As ResumableSub
Wait For (mConn.RunAwait("run", Array(Command), Null)) Complete (Result As PyWrapper)
'Result is a Python object that can't be serialized directly, so we extract the fields:
Wait For (ObjectToDict(Result, Array("stdout", "stderr", "exit_status")).Fetch) Complete (Result As PyWrapper)
Return Result
End Sub