'This method is useful if you have changed
the name of your menus or classes,
changing them will leave behind permissions
that are not associated with anything.
You can use it always or just sometimes to
perform a security cleanup. Warning this will delete any permission
that is no longer part of any registered view or menu.
Remember invoke ONLY AFTER YOU HAVE REGISTERED ALL VIEWS'

def security_cleanup(self):

    self.sm.security_cleanup(self.baseviews, self.menu)
