Created hashlib compatible interface for whirlpool