httplib import error on python3
formatting/pep-8 fixes

Signed-off-by: Luke Inman-Semerau <luke.semerau@gmail.com>