Finished preliminary create_index.py