Python Array Check If Key Exists Python