Trailing whitespace cleanup

Mostly a stylistic change, so could be undesirable, but I think most people use that "no trailing space" style, and meaningful usage of these is generally discouraged by e.g. PEP8.