Layer the tomato slices, basil and onion in pie shells. Season with salt and pepper. Combine the grated cheeses and mayo together. Spread the mixture on top of the tomatoes. Bake at 350 for 30 minutes or until lightly browned. Serve warm.