結果 : how to check if priority queue is empty python