How To Implement A Priority Queue In Python