update urllib2 settings