Associate keywords with their respective indentation numbers

def assign_indent_numbers(lst, inum, dic=collections.defaultdict(int)):
    """ Associate keywords with their respective indentation numbers
    """
    for i in lst:
        dic[i] = inum
    return dic