Add timeout to urllib2