Fix whitespace issues

This commit removes all trailing whitespace in the python code.

@peastman, if you have no objections, I can also update the whitespace around operators to conform to PEP8, which makes it easier on the eyes---at least to me.