'Set an option
section=None: attribute a default section name'

def set(self, section, option, value, verbose=False, save=True):

    section = self._check_section_option(section, option)
    default_value = self.get_default(section, option)
    if (default_value is NoDefault):
        if (PY2 and is_text_string(value)):
            value = repr(value)
        default_value = value
        self.set_default(section, option, default_value)
    if isinstance(default_value, bool):
        value = bool(value)
    elif isinstance(default_value, float):
        value = float(value)
    elif isinstance(default_value, int):
        value = int(value)
    elif (not is_text_string(default_value)):
        value = repr(value)
    self._set(section, option, value, verbose)
    if save:
        self._save()
