Limit amount of tasks per child process

Prevents Python from stealing all ram
Python does not return unused ram untill the process is stopped
By limiting the number of tasks per child the process will be killed
after 10 tasks and a new process will be started.