AttributeError: 'module' object has no attribute 'Fieldstorage'
<p>Getting very confused. Searched around but could not find any help that was useful. I get the error </p>

<p>Traceback (most recent call last):
  File "/Users/Andrew/Desktop/password.py", line 2, in 
    form = cgi.Fieldstorage()
AttributeError: 'module' object has no attribute 'Fieldstorage'</p>

<pre><code>import cgi
form = cgi.Fieldstorage()

print """Content-type: text/html

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html&gt;&lt;head&gt;
&lt;title&gt;Lab 10&lt;/title&gt;
&lt;/head&gt;&lt;body&gt;
"""

password = form.getvalue("password")
if password=="12345":
    print "&lt;p&gt;Password correct.&lt;/p&gt;"

else:
    print "&lt;p&gt;Sorry, try again.&lt;/p&gt;"

print "&lt;/body&gt;"
print "&lt;/html&gt;"
</code></pre>