code: def prune(self):
          
          self.boundprocs = [ obj for obj in self.boundprocs if obj.permission in self.display ]
          self.variables = [ obj for obj in self.variables if obj.permission in self.display ]
          for obj in self.boundprocs + self.variables:
              obj.visible = True
docs: Remove anything which shouldn't be displayed.