Check code style as part of tests
PEP8
Fix the majority of Pylint warnings
Remove globals
Install html2text dependency for tests
Fix imports for Python 2
Fix exception logging
Merge branch 'code-style'