def add_dictval_to_list(adict, key, alist):
    """add a value from a dictionary to a list
   
    :param adict: dictionary
    :param key: key of value
    :param list: list where value should be added
    """
    if key in adict.keys():
        if type(adict[key]) == str:
            alist.append(adict[key])
        else:
            alist.extend(adict[key])
