Break the garlic heads into cloves and peel them. When you're almost done, bring a pot of water to a boil. Add the garlic cloves to the boiling water, lower the heat to medium and cook for 15 minutes. Drain the garlic thoroughly and puree it. Put it in a large bowl and add the cheeses, eggs, raisins, salt, and spices.

Add the filling to the pie and cover it. Bake at 400 degrees for 45 minutes to an hour.