ettings = _testinternalcapi.get_interp_settings() with os.fdopen(zX, "w") as stdin: json.dump(settings, stdin) )