code: def _write(self, value):
          
          if ' ' in value:
              s = inspect.stack()
              fn = s[1].function
              super().write('%%DEBUG {} %%'.format(fn))
          super().write(value)
docs: rename to write and import inspect to debut the callstack