Merge pull request #327 from alex/typos

a random set of flake8 and typo fixes