Removing Trailing Whitespace

First of all awesome project, I've already gotten a lot of use out of it. I'd like to add some more things, but the first issue I hit when trying to develop for it was all kinds of trailing whitespace. Given Python is whitespace sensitive getting that out of the way is a good first step.

More to come.