This most likely happens because the repr skips the "task_*" variables in the data and hence doesn't properly close the printed scope