polys: Fixed tuple.index() for Python 2.5