Fixed broken urlparse import in Python 3.