def append_mids(mids1, mids2):
    """used when we have two lists of mids. Joins these two """
    for i in range(len(mids2[0])):
        emu = mids2[0][i]
        mid = mids2[1][i]
        if not emu in mids1[0]:
            mids1[0].append(emu)
            mids1[1].append(mid)
    return mids1
