Replace references to urllib.parse with urlparse