Replace Django Hashcompat with Hashlib