Improving performace, using Thread python class

We change a runtime thread for a controlled thread, we thought that we were improving everything, we were wrong, it was necessary to join all the threads, anyway it keeps taking a lot of time while trying with 20 variables :/ it took more than an hour and the process continued working, takes just 15 seconds with 10 yay!(?)
Merging changes

Integrating recent commits from both collaborators including test and merged files