import re


def get_advanced_name(classic_name):
    """
        Helper function to get a valid Advanced identifier
        corresponding to a Classic identifier.
        Note that this does not deal with reserved words.
        Nor does it check for duplicates.
    """
    adv_name = "nspepi_adv_" + re.sub(r'[^a-zA-Z0-9_]', '_', classic_name)
    return adv_name