Reformatted according to PEP8 and fixed some typos.
Reformatted according to PEP8 and fixed some typos.