namedtuple and Testing.

Use collections.namedtuple() as a return value instead of dict().
namedtuples are much more readable and durable in my mind.

Also, test urllib2 request and response.