update get_table_of_contents.py for wsgi mounting