For the cookie dough, melt the butter and cool until tepid or barely warm to the touch, for about 40 minutes. Grind the pistachios and sugar in a food processor, pulsing on/off until the nuts are coarsely chopped, or chop the nuts by hand and mix them with the sugar. Blend the flo...