def METHOD_NAME(self, section, option):
    x = self._reader.get(section, option).lower()
    if x in self.BOOLEAN_TRUE:
        return True
    if x in self.BOOLEAN_FALSE:
        return False
    raise BadConfiguration("Option '%s.%s' must be a boolean value." % (
        section, option))