Improve Remote Python Executor error handling and allow for structured response