def run(self): for tool in self.menu.keys(): # add a pre-validation step if security.allow(tool, self.user): break else: print "You're not authorized for any menu selections" return Menu.run(self)