in Python 3.4, dividing an int by another int always returns a float
raise a ValueError if given an invalid hex

this allows the caller to handle the error how they see fit
actually, the range length is always the same
Merge pull request #10 from scribu/hex_to_hash_fixes

hex_to_hash() fixes