Fix some typos and PEP8