Use six for http.client
Replace uses of 'urllib' and 'urlparse' with Python 3 idioms via six
Correct PEP8 violation