title: split bytes variable on newline
body: <p>This is an unusual request, and I would appreciate some guidance! :)</p>
  
  <p>I have a python variable, for simplicity we can call it 'output' </p>
  
  <p>When I print output I get the following:</p>
  
  <pre><code>b"word1\nword2\nword3\n"
  </code></pre>
  
  <p>I would love it if I could print</p>
  
  <pre><code>word1
  word2
  word3
  word4
  </code></pre>
  
  <p>I have tried to split the variable, and feed it to a for loop with zero success.  I am happy to write the output to a file in the OS and use bash to resolve the issue as well.</p>
  
  <p>Thanks!</p>