I can reproduce here. Have no idea what's causing that either, although it seems to be Python related. I have made no mods to Python though, but it was recently upgraded to 2.7.13 in master.
Any progress on the youtube plugin issue? I'm having the same problem. I stepped through the call stack and nothing seemed too unusual until the exception is thrown?
Did the urllib2 python lib change in addition to the python version changing?