Change urllib to urllib2

Change urllib to urllib2 to void blocking with Keep-Alive connections.

Only in those two places urllib issued. Other places in the same file, urllib2 is used. Hence changed the urllib to urllib2.