python list get index and value for loop