Heat the oven to 350 and coat a 9″ pie plate with a little olive oil. Line bottom of plate with potato slices. Cut remaining slices in half and arrange around side of plate. Bake 12 to 15 minutes. Remove from oven and set aside. Coat a sauté pan with olive oil and sauté onion over low heat until tender, about 5 minutes. Add spinach to the pan and let wilt, about 2 to 3 minutes. Remove from heat. Stir in olives.
In a bowl, beat eggs and egg whites. Stir in ricotta or cottage cheese and feta. Add half of the basil or dill and set aside. Spoon onion and spinach mix into pie plate over the cooked potatoes. Layer on egg mixture, then slices of tomato (optional). Bake 20 to 25 minutes or until egg is set and a knife inserted into pie comes out clean. Sprinkle the grated cheeses evenly over top of pie and top with remaining basil or dill. Return to oven for 5 minutes or until cheese melts. Remove from oven and let sit for 5 minutes. Cut pie into 4 wedges. Serve immediately.