A Star Search Algorithm Python Code