created index for python