Switch to threaded python server for tests.

Hopefully fixes some intermittent failures.