efficient arrays of booleans for Python