python check if index exist in list