Add user agent back to tasks.py