it's probably more clear and simple to do ``parsed_url.path.rstrip('/')...``