Mix the grated pumpkin, coconut, cornmeal, sugar, nutmeg, shortening, cinnamon, raisins, black pepper, and salt until well combined. The mixture should be thick but not dry. Add a little water if needed.
Wipe the banana leaves clean and cut into approximately 6-inch squares. Dip them briefly in hot water to soften and make them easier to fold. If using foil instead, cut into approximately 6-inch pieces.
Spoon some of the paime mixture into the center of each prepared banana leaf or piece of foil, leaving enough room around the edges to fold and securely close the parcel.
Fold the banana leaf around the mixture to form a parcel and secure with twine. Wrap with foil if needed to help prevent leaks.
Place the wrapped paime in a pot of boiling water. Boil for 30 to 40 minutes, or until the cornmeal is cooked through and firm.
Carefully remove the cooked paime from the water and allow the parcels to cool slightly before unwrapping. Serve warm or at room temperature.