Python: Adding Golomb coding for EV whitelist.

Golomb coding hashes the fixed 8-bytes EV cert hashes by 20%.
The comment says "Make sure that M is a power of 2" which by definition is an int with a single bit set, isn't it?  Or can you really not do that in python?