fixed uncaught urllib2 error