code: def clean_service_url(url):
      
      parts = urlparse(url)
      return urlunparse((parts.scheme, parts.netloc, parts.path, '', '', ''))
docs: Return only the scheme, hostname (with optional port) and path
      components of the parameter URL.