Adding the task manager and minor changes on pytask_t