According to this the default timeout in urllib2 is -1, or None. So... this is a problem for long running programs, when occasionally some connection will hang everything.
Solution is pretty simple, add a timeout to the 'open' here
I'll fork and try make a fix