Keep urlparse import compatible with Py2