Finished inital version of python indexer