Add python script that generates a json-based index