def normalize_dict(in_dict):
    """
    normalize the dict in order to easy the usage.

    1. all the key is changed to lower case
    2. all the value will be prime type, the list will use the first value

    :param in_dict: raw dict
    :return: dict converted on 2 rules
    """
    if not in_dict:
        return {}

    result_dict = {}
    for k, v in in_dict.items():
        new_k = k.lower()
        new_v = ""
        if isinstance(v, (list, tuple)):
            if v:
                new_v = v[0]
        else:
            new_v = v
        result_dict[new_k] = new_v
    return result_dict