title: NameError: name 'urlopen' is not defined
body: <p>ok this is my last question so i finally found an api that prints good and that works but my problem is im getting errors if someone could look at this for me and tell me whats wrong that would be great</p>
  
  <pre><code>import urllib
  import json
  
  request = urlopen("http://api.exmaple.com/stuff?client_id=someid&amp;client_secret=randomsecret")
  response = request.read()
  json = json.loads(response)
  if json['success']:
       ob = json['response']['ob']
       print ("The current weather in Seattle is %s with a temperature of %d") % (ob['weather'].lower(), ob['tempF'])
  else:
       print ("An error occurred: %s") % (json['error']['description'])
  request.close()
  </code></pre>
  
  <p>and here is the error </p>
  
  <pre><code>Traceback (most recent call last):
  File "thing.py", line 4, in &lt;module&gt;
  request = urlopen("http://api.exmaple.com/stuff?client_id=someid&amp;client_secret=randomsecret")
  NameError: name 'urlopen' is not defined
  </code></pre>