Get Function In Hashmap Python Example