def combine_dictionaries(a, b):
    """
    returns the combined dictionary.  a's values preferentially chosen
    """
    c = {}
    for key in list(b.keys()):
        c[key] = b[key]
    for key in list(a.keys()):
        c[key] = a[key]
    return c
