Revert "Update tasks.py"

This reverts commit 52661864cf0f5b6601c6bff848b3b8af0812fea8.