could you switch to calling urllib2.open (instead of urllib.open) in this function, so that it works seamlessly with http proxies?