public UartPythonEngine(Machine machine, IUART uart, string script)
        {
            Script  = script;
            Uart    = uart;
            Machine = machine;

            InnerInit();

            Hook = line =>
            {
                Scope.SetVariable("line", line);
                Execute(code, error =>
                {
                    Uart.Log(LogLevel.Error, "Python runtime error: {0}", error);
                });
            };
        }