title: Python; urllib error: AttributeError: 'bytes' object has no attribute 'read'
body: <p>Note: This is Python 3, there is no urllib2.  Also, I've tried using json.loads(), and I get this error: </p>
  
  <pre><code>TypeError: can't use a string pattern on a bytes-like object
  </code></pre>
  
  <p>I get this error if I use json.loads() and remove the .read() from response:</p>
  
  <pre><code>TypeError: expected string or buffer
  </code></pre>
  
  <p>></p>
  
  <pre><code>import urllib.request
  import json
  
  response = urllib.request.urlopen('http://www.reddit.com/r/all/top/.json').read()
  jsonResponse = json.load(response)
  
  for child in jsonResponse['data']['children']:
      print (child['data']['title'])
  </code></pre>
  
  <p>Does not work... I have no idea why.</p>