Change urllib to urllib2

Change urllib to urllib2 to void blocking with Keep-Alive connections.