Restored tasks.py as it was