def save_info(path, info, default_flow_style=False): with open(path, 'w') as file: _yaml.dump_all(info, file, default_flow_style=default_flow_style)