What?  I think `url_parts` should be parsed into a `dict` or something, this code doesn't make any sense without knowing what `url_parts` will be.