Fix urlparse import for Python3

Works fine for me under Python 3.3 with this fix.