Update tests/editor.py with correct setting of sys.stdout and sys.stderr