Python implementation of a bitarray