How To Implement Priority Queue In Python