Corrected format for PEP8

Fixed whitespace, new lines and line length to match PEP8.