fix dates.py import to work with celery >=3.0.0