fix minor PEP8 issues and typos