urllib py3 compatibility.