code: def boolValue(self):
          
          if self.lastValue == 1 or self.lastValue == "active":
              self._key = 1
              self._boolKey = True
          else:
              self._key = 0
              self._boolKey = False
          return self._boolKey
docs: returns : (boolean) Value