My own implementation of a bitvector as a python extension