title: 'module' has no attribute 'urlencode'
body: <p>When I try to follow the <a href="https://docs.python.org/2/library/urllib.html#urllib.urlencode" rel="noreferrer">Python Wiki's example</a> related to URL encoding:</p>
  
  <pre><code>&gt;&gt;&gt; import urllib
  &gt;&gt;&gt; params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0})
  &gt;&gt;&gt; f = urllib.urlopen("http://www.musi-cal.com/cgi-bin/query", params)
  &gt;&gt;&gt; print f.read()
  </code></pre>
  
  <p>An error is raised on the second line:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  AttributeError: 'module' object has no attribute 'urlencode'
  </code></pre>
  
  <p>What am I missing?</p>