def convert_old_color_to_new(oldPair, colorMode="16"):
    """ takes in a frame['colorMap'][x][y] list, returns a new list with
    [0] replaced by appropriately mapped # """
    #newPair = oldPair
    newFg = oldPair[0]
    newBg = oldPair[1]
    if colorMode == "16":
        if oldPair[0] in old_16_pal_to_new.keys():
            newFg = old_16_pal_to_new[oldPair[0]]
            newFg += 1
        if oldPair[1] in old_16_pal_to_new.keys():
            newBg = old_16_pal_to_new[oldPair[1]]
            #newBg += 1
    if colorMode == "256":
        if oldPair[0] in old_256_pal_to_new.keys():
            newFg = old_256_pal_to_new[oldPair[0]]
            newFg += 1
        #if oldPair[1] in old_16_pal_to_new.keys():
        #    newBg = old_16_pal_to_new[oldPair[1]]
        newBg = oldPair[1]    # 256 does not use bg color, so don't change it
    #pdb.set_trace()
    return [newFg, newBg]
 takes in a frame['colorMap'][x][y] list, returns a new list with
    [0] replaced by appropriately mapped # 
durdraw/durdraw_file.py