def get_colorpair(pair_name): val = curses_colors.CURSES_COLORPAIRS[pair_name] return curses.color_pair(val)