make celery emails config a dict