Keep __main__ namespace clean
diff --git a/Lib/idlelib/macosx_main.py b/Lib/idlelib/macosx_main.py
index c518094..8fdeeb1 100644
--- a/Lib/idlelib/macosx_main.py
+++ b/Lib/idlelib/macosx_main.py
@@ -35,7 +35,7 @@
 
     # this module will become the namespace used by the interactive
     # interpreter; remove all variables we have defined.
-    del sys, __file__, split, join, isdir
+    del sys, __file__, split, join, isdir, idlelib
     __import__('run').main()
 else:
     # Load idlelib/idle.py which starts the application.