title: AttributeError("'str' object has no attribute 'read'")
body: <p>In Python I'm getting an error:</p>
  <pre><code>Exception:  (&lt;type 'exceptions.AttributeError'&gt;,
  AttributeError(&quot;'str' object has no attribute 'read'&quot;,), &lt;traceback object at 0x1543ab8&gt;)
  </code></pre>
  <p>Given python code:</p>
  <pre><code>def getEntries (self, sub):
      url = 'http://www.reddit.com/'
      if (sub != ''):
          url += 'r/' + sub
      
      request = urllib2.Request (url + 
          '.json', None, {'User-Agent' : 'Reddit desktop client by /user/RobinJ1995/'})
      response = urllib2.urlopen (request)
      jsonStr = response.read()
      
      return json.load(jsonStr)['data']['children']
  </code></pre>
  <p>What does this error mean and what did I do to cause it?</p>