Python Unit Testing Threaded Barrel