Fix localhost requests behind proxy environments.

There is a bug caused by `urllib2.urlopen`, where an user behind proxy environments cannot make requests appropriately. local requests should really go through no proxy.

So, here is the fix.