python3 write bytes to stdout