nl: foreground is a dictionary created with elements: x appended to a string '3' for value under the key x of color_names dictionary,
code: foreground = dict ( ( color_names [ x ] , '3%s' % x ) for x in range ( 8 ) )