Python: Adding Golomb coding for EV whitelist.

Golomb coding hashes the fixed 8-bytes EV cert hashes by 20%.
I'm not checking that an int has just 1 bit set in it.
I'd like to assert that math.log(M, 2) is a round number, except direct equality comparison of floats fails  - so I'm checking they're within a very small error.