uhh, are you writing your own webbrowser.py! Don't shadow builtin module names...
Also, the error you posted isn't the same as the traceback. Do you have a link to the source of the webbrowser.py that you are using? It seems to be setting urlparse to None...