Fix the majority of Pylint warnings
Remove globals
Install html2text dependency for tests