Python Unit Testing Threaded Pvc Pipe