A* search applied to "pancake sorting" -- how many "flips" does it take to order an unordered stack of pancakes? (Python 2.7)