Import the MacOS toolbox modules from the Carbon package.
diff --git a/Mac/Tools/CGI/PythonCGISlave.py b/Mac/Tools/CGI/PythonCGISlave.py
index d2dd90f..f14a582 100644
--- a/Mac/Tools/CGI/PythonCGISlave.py
+++ b/Mac/Tools/CGI/PythonCGISlave.py
@@ -70,7 +70,8 @@
 
 def get_cgi_code():
 	# If we're a CGI wrapper, the CGI code resides in a PYC resource.
-	import Res, marshal
+	from Carbon import Res
+	import marshal
 	try:
 		code = Res.GetNamedResource('PYC ', "CGI_MAIN")
 	except Res.Error: