Bit Array Python Example Code