Uniform Cost Search Using Priority Queue Python Code