Implemented DebugKernelRequestListener that prints all events to the console.
Handles execute_result/pyout and error/pyerr messages.