def write(self):
file = open(self.config_file, "<STR_LIT>")<EOL>file.write(yaml.dump(dict(self), default_flow_style=False))<EOL>file.close()<EOL>
Write config in configuration file.
Data must me a dict.