def METHOD_NAME(a):
    if not isinstance(a, dict):
        return a
    retval = {}
    for item in a.keys():
        if isinstance(a.get(item), dict):
            if "Ip" in item:
                retval[item.replace("Ip", "IP")] = METHOD_NAME(a.get(item))
            elif "Arn" == item:
                retval["ARN"] = METHOD_NAME(a.get(item))
            else:
                retval[item] = METHOD_NAME(a.get(item))
        elif isinstance(a.get(item), list):
            retval[item] = []
            for idx in range(len(a.get(item))):
                retval[item].append(METHOD_NAME(a.get(item)[idx]))
        elif "Ip" in item:
            retval[item.replace("Ip", "IP")] = a.get(item)
        elif "Arn" == item:
            retval["ARN"] = a.get(item)
        else:
            retval[item] = a.get(item)
    return retval