import yaml


def read_mapping(source):
    """Read the YAML mapping file and return a dictionary of keys and values"""
    with open(source) as sourcefile:
        mapping = yaml.safe_load(sourcefile)
    return mapping