Fixing invocation of Celery task to not cause a serialization error