def convert_colormap(self, mov, conv_table):
        """ takes a dictionary that contains a coler mapper. 
            Modifies the movie
         """    # It might be better to deepclone and return a new movie...
        for frame in mov.frames:
            for line in frame.newColorMap:
                for pair in line:
                    if pair[0] in conv_table.keys():
                        pair[0] = conv_table[pair[0]]
                    if 'bg' in conv_table.keys():
                        if pair[1] in conv_table['bg'].keys():
                            pair[1] = conv_table['bg'][pair[1]]
                    #if pair[1] == 16:
                    #    pair[1] = 0
                    #if pair[1] in conv_table.keys():
                    #    pair[1] = conv_table[pair[1]]
 takes a dictionary that contains a coler mapper. 
            Modifies the movie
         
durdraw/durdraw_color_curses.py