Update whirlpool to use Python's hashlib interface

This updates the whirlpool digest to provide the same interface as other Python digest algorithms.