def printc(text, color):
 if sys.stdout.isatty():
  print (((('\x1b[' + codeCodes[color]) + 'm') + text) + '\x1b[0m')
 else:
  print text

def printc ( text , color ) : if sys . stdout . isatty ( ) : print ( ( ( ( '\x1b[' + codeCodes [ color ] ) + 'm' ) + text ) + '\x1b[0m' ) else : print text
print in color .