#NEWLINE# def write( self , text , color ) : #NEWLINE# #INDENT# color = text . _colors [ color ] #NEWLINE# self . screenBuffer . SetConsoleTextAttribute ( color ) #NEWLINE# self . stream . write ( text ) #NEWLINE# self . screenBuffer . SetConsoleTextAttribute ( self . _colors [ 'normal' ] )