title: csv.Error: did you open the file in text mode?
body: <p>the python file contains the following code</p>
  
  <pre><code>import csv 
  import urllib.request
  url = "https://gist.githubusercontent.com/aparrish/cb1672e98057ea2ab7a1/raw/13166792e0e8436221ef85d2a655f1965c400f75/lebron_james.csv"
  stats = list(csv.reader(urllib.request.urlopen(url)))
  </code></pre>
  
  <p>When I run the above code in python, I get the following exception:</p>
  
  <blockquote>
    <p>Error<br>
    Traceback (most recent call last)
     in ()
          1 url = "<a href="https://gist.githubusercontent.com/aparrish/cb1672e98057ea2ab7a1/raw/13166792e0e8436221ef85d2a655f1965c400f75/lebron_james.csv" rel="nofollow noreferrer">https://gist.githubusercontent.com/aparrish/cb1672e98057ea2ab7a1/raw/13166792e0e8436221ef85d2a655f1965c400f75/lebron_james.csv</a>"
    ----> 2 stats = list(csv.reader(urllib.request.urlopen(url)))</p>
    
    <p>Error: iterator should return strings, not bytes (did you open the file in text mode?)</p>
  </blockquote>
  
  <p>How can I fix this problem?</p>