fix for django 1.6+ - replace hashcompat with hashlib