I've been reading the sources to simhash-py, and it looks as if this will work for num_bits = 0. Do you agree? Can you test it?