def parse_yaml(yml):
    """
    Parse a load YAML file per momo format: looking for 'name' and 'contents'
    """
    name = None
    contents = None
    for d in yml:
        if 'name' in d:
            name = d['name']
        if 'contents' in d:
            contents = d['contents']
    return name, contents
