I found out bit_to_mask was horribly broken.  Trying to figure out this two's
compliment crap.  And struct.pack crap.  It's all crap.