Remove urllib2 dependency