def stdout():
<EOL>byte_stdout = sys.stdout<EOL>if sys.version_info.major > <NUM_LIT:2>:<EOL><INDENT>byte_stdout = sys.stdout.buffer  <EOL><DEDENT>return byte_stdout<EOL>
Returns the stdout as a byte stream in a Py2/PY3 compatible manner

Returns
-------
io.BytesIO
    Byte stream of Stdout