Update tasksmanager.py