code: def process_rule(self,rule,pa,tuple):
          ''' Process a string that denotes a boolean rule.
          '''
          for i,v in enumerate(tuple):
              rule = rule.replace(pa[i],str(v))
          return eval(rulef process_rule(self,rule,pa,tuple):
          ''' Process a string that denotes a boolean rule.
          '''
          for i,v in enumerate(tuple):
              rule = rule.replace(pa[i],str(v))
          return eval(rule)
docs: Process a string that denotes a boolean rule.