Informed Search Algorithm In Python