There is no point in rewriting this to use requests is there? `urlopen(url).read()` is exactly what I need here.