Use vulture to find and delete some dead code.
Fix some errors detected with pyflakes