preheat oven to 350 degrees. heat 1 tablespoon of oil and saute tempeh and shallots until brown. set aside. oil the sides of a large baking dish, place a layer of potatoes, zucchini, squash, peas and tomatoes on the bottom of the dish. save 1/3 cup cheese for later use. sprinkle with half the bacon, pinto beans, oil and cheese. layer remaining vegetables and repeat. Bake covered for 45 minutes. remove from oven and top with remaining cheese, bake uncovered for 10 minutes or until cheese is browned.