fix SysStderrWriteHandler writing to sys.stderr