Import the MacOS toolbox modules from the Carbon package.
diff --git a/Mac/Tools/IDE/PythonIDEMain.py b/Mac/Tools/IDE/PythonIDEMain.py
index 55489e2..4dfa162 100644
--- a/Mac/Tools/IDE/PythonIDEMain.py
+++ b/Mac/Tools/IDE/PythonIDEMain.py
@@ -14,7 +14,8 @@
 	def __init__(self):
 		self.preffilepath = ":Python:PythonIDE preferences"
 		Wapplication.Application.__init__(self, 'Pide')
-		import AE, AppleEvents
+		from Carbon import AE
+		from Carbon import AppleEvents
 		
 		AE.AEInstallEventHandler(AppleEvents.kCoreEventClass, AppleEvents.kAEOpenApplication, 
 				self.ignoreevent)
@@ -123,7 +124,7 @@
 		self.makescriptsmenu()
 	
 	def quitevent(self, theAppleEvent, theReply):
-		import AE
+		from Carbon import AE
 		AE.AEInteractWithUser(50000000)
 		self._quit()