Added python script to write index files