Clean up some unused imports and other pyflakes errors
Fix some PEP8 errors.
More PEP8 fixes
Only copy files required for a specific product.
Split closing the testharness.js window into a seperate operation so that it's possible to inspect the state of the window before it gets closed.