Dijkstra algorithm on python

Priority queue using binary heap
from http://code.activestate.com/recipes/117228/