Python Unit Testing Threaded Inserts