def all_candidates(name, attr, MAPPING=MAPPING):
    """
    Returns all candidate packages for the name.attr
    """
    dotted = name + '.' + attr
    assert dotted in MAPPING, 'No matching package found.'
    ret = MAPPING[dotted]
    if attr == '__init__':
        return ret + (name,)
    return ret
