def print_col(text, color):
 if use_color:
  fg = _esc(fg_colors[color.lower()])
  reset = _esc(fg_colors['reset'])
  print ''.join([fg, text, reset])
 else:
  print text

def print_col ( text , color ) : if use_color : fg = _esc ( fg_colors [ color . lower ( ) ] ) reset = _esc ( fg_colors [ 'reset' ] ) print '' . join ( [ fg , text , reset ] ) else : print text
print a colorized text .