Python Unit Testing Threaded Codex Cli