Python Unit Testing Threaded Codex Definition