improve mocked headers so urllib2 can handle redirects too
add test for redirects