Fix minor typos and PEP8 issues