Replace hashcompat to hashlib