script to learn child processes with .spawn