Just import sys at the top instead of inside lots of functions.

Add some helpers for supporting PyUNIT-based unit testing.
1 file changed