code: def get_services_url(url, base_url):
          
          length = len(base_url)
          checks = ['http://', 'https://']
          for check in checks:
              if url.startswith(check):
                  length = length + len(check)
                  break
  
          result = url[length:]
          logger.debug('{0} from {1} equals {2}'
                       .format(base_url, url, result))
          return result
docs: Get the URI from a given URL.
  
          :returns: URI within the URL