'Set a config setting for `key` with the given `value`.'

def setConfig(self, key, value):

    if isinstance(self.config[key][0], bool):
        value = parseBoolValue(value)
    if (self.config[key][0] is None):
        value = parseBoolValue(value, preserve_none=True)
    self.config[key][0] = value
