After the 115th iteration, sometimes more, an error appears:
pid = os.fork() BlockingIOError: [Errno 11] Resource temporarily unavailable
Here is