Replace urlparse by urlsplit