replace urllib to urlfetch