use urllib2's timeour facility instead of socket