title: TypeError: sequence item 0: expected str instance, bytes found
body: <pre><code>for line in fo:
      line = " ".join(line.split())
      line = line.strip()
  </code></pre>
  
  <p>I am getting an error  </p>
  
  <pre><code>line = ''.join(line.split())
  TypeError: sequence item 0: expected str instance, bytes found
  </code></pre>
  
  <p>its working fine in python 2.x, but not working on 3.4
  kindly suggest a proper solution for that</p>