def add_account(self, account):
serialized = account.serialize()<EOL>section_items = flatten_dict(serialized)<EOL>section_id = section_items['<STR_LIT>']<EOL>if not self.parser.has_section(section_id):<EOL><INDENT>self.parser.add_section(section_id)<EOL><DEDENT>for key in sorted(section_items):<EOL><INDENT>self.parser.set(section_id, key, section_items[key])<EOL><DEDENT>self.encrypt_account(id=section_id)<EOL>return self<EOL>
Add Account to config (does not save)