name-value-eval-preparse: fixed definition of Python max_index() function