clean whitespace, fix blank lines according to pep8
Merge pull request #163 from lepture/code-style

clean whitespace, fix blank lines according to pep8