Clean up sytax for looking for dictionary item in a list