from PyObjCTools import NibClassBuilder,AppHelper NibClassBuilder.extractClasses("MainMenu") import AppController AppHelper.runEventLoop()