Replaced usage of urllib with packages.urllib3.util.

I forgot that urllib changed a lot in Python 3 until I ran the tests.  Luckily
urllib3 works around some of these problems.