message: Step up python stack until we find our globals, or run out of stack
  * In python globals aren't really global, they're just module-level
  variables. So to find our _renderdoc_internal we have to potentailly
  walk the stack if we're inside another module until we get to the
  globals dict we set up.
diff: @@ -635,7 +635,11 @@ PyObject *PythonContext::outstream_write(PyObject *self, PyObject *args)
  // contexts. So look up the global variable that stores the context
  if(context == NULL)
  {
  - PyObject *globals = PyEval_GetGlobals();
  + _frame *frame = PyEval_GetFrame();
  +
  + while(frame)
  + {
  + PyObject *globals = frame->f_globals;
  if(globals)
  {
  OutputRedirector *global =
  @@ -643,6 +647,12 @@ PyObject *PythonContext::outstream_write(PyObject *self, PyObject *args)
  if(global)
  context = global->context;
  }
  +
  + if(context)
  + break;
  +
  + frame = frame->f_back;
  + }
  }
  if(context)
  