My bits_to_mask and mask_to_bits were horribly, horribly broken.  They work
now.  Run testip.py, and you'll see the whole shooting match.

More utilites to come!!!