def __call__(self, args):
     if args[0].lower() == "button":
         setstatus(self.local, "gate_closed", False)
         return "You sucessful press the button"
 def __call__(self, args):
     itemname = " ".join(args)
     if itemname.lower() != "potion book":
         return "No, no, no. What else do you have?"
     setstatus(self.local, "portal_closed", False)
     return "Just what I was looking for! Ok, now the portal to the west is open. Go through it to end your game."
 def setstatus(self, textobject, idx, valuestatus):
     setstatus(textobject,idx,valuestatus)