Update tasks.py

made the task working