use urllib2 and open url with timeout