Python Unit Testing Threaded Codex Executor