misc cleanup in wisepill code

just pep8 stuff and removing a dead variable