switching urllib to urllib2 for consistency