use urllib2 as it has timeout