I\'m having a bit of trouble implementing a priority queue in python. Essentially I copied all the code from the heapq implementation documentation, however in my applicatio