Python 3 support for httplib and urllib and urlparse

These changes leverage six to provide Python 3 compatibility for httplib, urllib, and urlparse modules.
Thanks for drawing this to my attention. I think I missed the build failure.