httplib import error on python3
formatting/pep-8 fixes