Lightly oil a shallow rectangular baking tin which is slightly smaller than the size of your pastry sheets. Preheat oven to 180° C. Remove spinach leaves from stalks and wash. Put the wet leaves in a saucepan, cover with a lid and cook until wilted - this won't take long, just a few minutes. Drain spinach and place in food processor, then blitz with the butter until smooth. Place spinach puree in a bowl with the egg, ricotta and Parmesan or cheddar or feta. Mix well and season to taste.
Line baking tin with one sheet of pastry, cover evenly with the spinach filling, then cover with the second sheet. Crimp the edges and cut off or fold in any overhang (that's what I did in the photo). Mark the pie into 6 or 8 servings by cutting through the top layer. Brush with beaten egg and sprinkle with sesame seeds.
Bake for about half an hour or until golden brown all over. Remove from the oven. To serve, cut right through.
Serve warm with a salad.