Incorporating Python style guide

Incorporating Python style guide edits for handling tabs and spaces.