def _write_yaml(self, config_dict, dest): with open(dest, 'w') as f: yaml.safe_dump(config_dict, f, default_flow_style=False)