Typically, you want to use the .path function to retrive the path
uri = target_uri.path