Python Hashmap Has Key