how to write binary data in stdout in python 3?,sys.stdout.buffer.write('some binary data')