A Star Algorithm Python Code