title: Python threads with urllib
body: <p>I use python to request a web service with many requests in the same time. To do so I create threads and use urllib (first version, I use python 2.6).
  When I start the threads, all goes well until one reach the ulllib.urlopen(). The second thread has to wait until the first one end before passing through the ulllib.urlopen() function. As I do a lot of work after having retrieved the Json from remote web service, I wish the second thread to "urlopen" in the same time or just after the first one closes its socket.</p>
  
  <p>I tried closing the socket opened just after having collected the JSON returned but it changes nothing. The second thread has to wait for the first one to be ended. To see that I use prints.</p>
  
  <p>I can understand that urllib isn't thread-safe (google this doesn't give clear answers) but why does the second thread has to wait for the first-one end (and not just the socket process end) ?</p>
  
  <p>Thanks for your help and hints</p>
  
  <p>PS: I do not use Python 3 for compatibility with modules / packages I require</p>