1. Remove the seeds and stems from the chiles and soak them in very hot water until soft, about 30 minutes or so. (Make sure they’re submerged by setting a lightweight bowl on top of the chiles.) When softened, puree the chiles in a blender. If the skins are tough, you may want to pass the puree though a food mill or strainer.
2. In a small skillet, sauté onion in vegetable oil until soft and translucent. Add garlic and sauté another minute. Add spices and herbs and cook, stirring constantly, for about 30 seconds, being careful not to let them burn.
3. Add to the chile puree in the blender, the almonds, the cooked onions and garlic, tomatoes, raisins or prunes, sesame seeds, salt, pepper, water, and melted chocolate, then puree until smooth.
4. Add additional water, if necessary, until the consistency is smooth and slightly pourable.
Store in the refrigerator until ready to use.