push taskId, numTasks to pyexec