Fixed syntax error for indexerApi code that was related to python 2.6