Python Unit Testing Threaded Code Knockout