def yaml_from_dict(dictionary, width=80):
 return yaml.safe_dump(dictionary, default_flow_style=False, width=width)

def yaml_from_dict ( dictionary , width = 80 ) : return yaml . safe_dump ( dictionary , default_flow_style = False , width = width )
gets the yaml representation of a dict .