Python Queue Put Method Of Hashmap