You are right, I had first named my file cgi.py... but then i realized that it was causing conflicts so i renamed it to mycgi.py as you can see in the trace, but the problem persisted...
After reading your reply i took a look at the directory i was in and there was a pyc file in it... cgi.pyc, i removed it and it worked! Thanks for the reply, it pointed me in the right direction... -- http://mail.python.org/mailman/listinfo/python-list