Fix test_tasks.py on Python 3.3