def safe_dump(data, stream=None, **kwds):
 return dump_all([data], stream, Dumper=SafeDumper, **kwds)

def safe_dump ( data , stream = None , ** kwds ) : return dump_all ( [ data ] , stream , Dumper = SafeDumper , ** kwds )
serialize a python object into a yaml stream .