def remap_dict(dict):
    """create secondary dictionary where AC-ids are used as the keys instead"""
    rmdict = {}
    for key in dict:
        term = dict[key]
        acs = (term.ac.replace("\n","")).split(';')
        acs.pop()
        for ac in acs:
            rmdict[(ac.replace(' ', ''))] = term
    return rmdict