title: Priority queue with higher priority first in Python
body: <p>I need a priority queue that gets the item with the highest priority value first. I'm currently using the PriorityQueue Class from the <a href="https://docs.python.org/2/library/queue.html" rel="noreferrer">Queue</a> library. However, this function only returns the items with the lowest value first. I tried some ugly solutions like (sys.maxint - priority) as the priority, but was just wondering if a more elegant solution exists.</p>