Resolved typos and PEP8 related warnings