This coulde should be in pyi_utils_create_child() just after the code waiting for the child to finish.