Fit core/tasks.py to pep8