This was existing code, but if we can use 2.6 features, this might be a good places to use a 
http://docs.python.org/2/library/collections.html#collections.namedtuple

something like:
```
url_info = namedtuple('UrlInfo, ["username", "password", "hostname", "port", "prefix"])
info = url_info(username=username, password=password, hostname=hostname, port=port, prefix=prefix)
return info
```