using `six.moves` support py2 and py3 http functionality diffs.

Basically, it just redirects function calls based on which python version you're using.