def _binary_stdio():
PY3K = sys.version_info >= (<NUM_LIT:3>, <NUM_LIT:0>)<EOL>if PY3K:<EOL><INDENT>stdin, stdout = sys.stdin.buffer, sys.stdout.buffer<EOL><DEDENT>else:<EOL><INDENT>if sys.platform == "<STR_LIT:win32>":<EOL><INDENT>import os<EOL>import msvcrt<EOL>msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY)<EOL>msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)<EOL><DEDENT>stdin, stdout = sys.stdin, sys.stdout<EOL><DEDENT>return stdin, stdout<EOL>
Construct binary stdio streams (not text mode).

    This seems to be different for Window/Unix Python2/3, so going by:
        https://stackoverflow.com/questions/2850893/reading-binary-data-from-stdin