Changed urlparse() import for Py3000 compatibility