Get Function In Hashmap Python Syntax