spiky now uses qtools.tasks for the multithread/multiprocess tasks
TODO: use processes instead of threads for intensive computations