Python Array Get Function Hashmap Containskey