All of the hashlib functions that I tried gave incorrect output.
For example, compare this stdlib example code:
>>> hashlib.sha224("Nobody inspects the spammish repetition").hexdigest()
'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2'
against the result on repl.it:
>>> hashlib.sha224("Nobody inspects the spammish repetition").hexdigest()
'03143f9f164335fafd05051e0163df081007ba1208d6f9eb4fd3f6fe'