def set(self, section, key, value):
if not section in self.config:<EOL><INDENT>self.config.add_section(section)<EOL><DEDENT>self.config.set(section, key, value)<EOL>
Creates the section value if it does not exists and sets the value.
Use write_config to actually set the value.