def reverse_dic(dic):
    """Reverses a dictionary

    This assumes the dicitonary is injective
    
    Arguments:
        dic {dict} -- Dictionary to reverse
    
    Returns:
        dict-- Reversed dictionary
    """
    rev_dic = dict()
    for k, v in dic.items():
        rev_dic[v] = k
    return rev_dic