Use celery for tasks; remove most of the bugs from random product generator