fix whitespace to comply with pep8

- tabs => 4 spaces
- two newlines separating top-level declarations
- one newline separating nested declarations
- one newline at end of file