python if value in list of dicts