Added test for index in python binding