Replacing django.util.hashcompat with built-in python hashlib (for Django 1.7 compatibility)