Python 3 support for httplib and urllib and urlparse

These changes leverage six to provide Python 3 compatibility for httplib, urllib, and urlparse modules.