>>> import queue
>>> pq = queue.PriorityQueue()
>>> for item in ((3, ), (4, ), (5, ), (1, ), (2, )):
  pq.put(item)


>>> while not pq.empty():
  print(pq.get_nowait())


(1, 'Solve RC tasks')
(2, 'Tax return')
(3, 'Clear drains')
(4, 'Feed cat')
(5, 'Make tea')
>>>