Python Hashmap Methods