Slight improvement to examples/usingTheIndex.py.