PEP8

Fixed minor typos and make code PEP8 compliant.