Python Queue Put Method In Java