Python Queue Put Method In Api