Python class for vectors of bits