def METHOD_NAME(process_name):
    """
    Recursively checks for obsolete variable names
    """
    while process_name in OBS_VARS:
        process_name = OBS_VARS[process_name]
        if process_name == "None":
            return None
        if isinstance(process_name, list):
            names = []
            for p in process_name:
                names += [METHOD_NAME(p)]
            return list(flatten_iterable(names))
    return process_name