def uriparse(uri): """Uri parser & return the path.""" if not isinstance(uri, str): uri = uri.get_uri() return unquote(urlparse(uri).path)