Something's wrong with how I combine the words into a list for the dict, but the combining part of the algorithm works fine.
Refactor imports to pep8