def import_set(dset, in_stream):
 dset.wipe()
 dset.dict = yaml.safe_load(in_stream)

def import_set ( dset , in_stream ) : dset . wipe ( ) dset . dict = yaml . safe_load ( in_stream )
returns dataset from json stream .