`Task` has no `__dict__`. I've changed this attribute to `_tasklocal_dict` to make it work
Taskhas no__dict__. I've changed this attribute to_tasklocal_dictto make it work