code: def normalize_uri(self, uri):
          
          return urllib.quote(
              re.sub(r"\s", '+', uri.strip().lower()),
              safe = '~@#$&()*!+=:),.?/\'')
docs: Convert a stream path into it's normalized form.