title: How to get print to format its output in python?
body: <p><code>print(reprt('Hello\nHello'))</code> will print <code>b'Hello\nHello'</code> and I would like it to print </p>
  
  <pre><code>Hello
  Hello
  </code></pre>
  
  <p>instead. The reason for this is that some functions such as <code>subprocess.check_output</code> send a repr output.</p>
  
  <pre><code>params = r'"C:\cygwin64\bin\bash.exe" --login -c ' + r"""'ls "C:\Users"'""" 
  
  print(subprocess.check_output(params, shell=True))
  </code></pre>