Implement Priority Queue Python