Add spacing in index_generator docstring

Make the example code in the `index_generator` docstring PEP8 compliant by adding spaces in the tuples and the dictionary unpacking.