def list_to_dict_entry(input):
    """ Take a list of strings and parse through looking for a string ending with a ':',
    if found, join the previous entries into one string and remove the ':' and leave
    remaining entries alone. If no ':' is found just return the list of strings unmodified.
    """
    output = input
    for index, item in enumerate(input):
        if item.endswith(':'):
            output = ['_'.join(input[0:index + 1]).strip(':')] + [input[index + 1:]]
            break
    return output