def imp_print ( self , text , end ) : sys . stdout . write ( ( text + end ) . encode ( "utf-8" ) )
sys stdout write encode in python 2
Directly send utf8 bytes to stdout
def imp_print(self, text, end):
		"""Directly send utf8 bytes to stdout"""
		sys.stdout.write((text + end).encode("utf-8"))