Hashmap Functions Python Return