get index and value from list python for loop