def METHOD_NAME(self, option, value):
    if type(value) in (list, tuple):
        value = ','.join(str(item) for item in value)
    else:
        value = str(value)
    self._section[option] = value
    # Immediately save the configuration
    self.save()