Removed dependency on urllib2