Test cleanup

I needed something completely brainless to do, so this PR introduces PEP8 compliance for the unit tests in traits/tests. It is almost entirely whitespace changes. There are a couple of separate commits that remove unused imports.