Pass SQLAlchemy objects cleanly to Celery tasks