move from django's hashcompat to hashlib