def get_keys_from_val(dic, val):
    """Get all keys from a value in a dictionnary"""
    toreturn = list()
    for key in dic:
        if dic[key] == val:
            toreturn.append(key)
    return toreturn