code: def normalize_uri(cls, uri):
  		
  		uri = WWebRoute.multiple_slashes_re.sub("/", uri)
  
  		# remove last slash
  		if len(uri) > 1:
  			if uri[-1] == '/':
  				uri = uri[:-1]
  
  		return uri
docs: Normalize the given URI (removes extra slashes)
  
  		:param uri: uri to normalize
  		:return: str