Python Array Check If Key In Dictionary