<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set(self, section, key, value):
 """set function sets a particular value for the specified key in the specified section and writes it to the config file. Parameters: * **section (string):
** the section under which the config should be saved. Only accepted values are - oxd, client * **key (string):
** the key/name of the config value * **value (string):
** the value which needs to be stored as a string Returns: **success (bool):
** a boolean indication of whether the value was stored successfully in the file """

        if not self.parser.has_section(section):
            logger.warning("Invalid config section: %s", section)
            return False

        self.parser.set(section, key, value)

        with open(self.config_file, 'wb') as cfile:
            self.parser.write(cfile)

        return True