Python Hashmap Put