Casted the weird urlparse object to a dict.