def modify_conf():
import redbaron<EOL>import ubelt as ub<EOL>conf_path = '<STR_LIT>'<EOL>source = ub.readfrom(conf_path)<EOL>red = redbaron.RedBaron(source)<EOL>extra_extensions = [<EOL>'<STR_LIT>'<EOL>]<EOL>ext_node = red.find('<STR_LIT:name>', value='<STR_LIT>').parent<EOL>ext_node.value.value.extend(extra_extensions)<EOL>theme_node = red.find('<STR_LIT:name>', value='<STR_LIT>').parent<EOL>theme_node.value.value = '<STR_LIT>'<EOL>ub.writeto(conf_path, red.dumps())<EOL>
pip install redbaron