[1]: https://pypi.python.org/pypi/bitarray
Edit: sorry, it was bitstring, not bitarray. bitstring.BitArray :).
[1]: https://pypi.python.org/pypi/bitarray