title: Python 3.4: 'str' does not support the buffer interface
body: <p>I am currently writing a program to pull a list of strings from the first column of a csv file, then store it in a .txt file, and finally use urllib to parse Yahoo Finance for the price that corresponds to each. However i keep on getting the error: </p>
  
  <p><code>TypeError: 'str' does not support the buffer interface.</code></p>
  
  <p>Here is my code thus far:</p>
  
  <pre><code>import csv
  import urllib.request
  
  completeList = open('complete.txt', 'r+')
  
  def ReadNasdaq():
      with open('NASDAQ_companylist.csv', newline='') as csvfile:
          spamreader = csv.reader(csvfile, delimiter=',')
          for column in spamreader:
              completeList.write(column[0]+'\n')
              print(column[0]," - ",column[1])
  
  ReadNasdaq()
  
  def ParsePrice():
      for line in completeList:
          yahooFinance = urllib.request.urlopen("http://finance.yahoo.com/q?s="+line).read()
          price = yahooFinance.split('&lt;span id="yfs_l84_'+line.lower()+'"&gt;' )[1].split("&lt;/span&gt;")[0]
          print(line, " - ", price)   
  
  ParsePrice()
  </code></pre>
  
  <p>The error is on the line:</p>
  
  <pre><code>price = yahooFinance.split('&lt;span id="yfs_l84_'+line.lower()+'"&gt;' )[1].split("&lt;/span&gt;")[0]
  </code></pre>
  
  <p>I know I have to convert the string into Unicode or binary, but any idea how I could do so? </p>