replace django.utils.hashcompat with hashlib