[python] Find the index of a dict within a list, by matching the dict's value