Implement Priority Queue In Python