In a large mixing bowl, mix together butter and sugar. Add eggs and mix until well combined. Add vanilla and pumpkin, then mix until well combined. In a separate bowl, combine flour, cocoa powder, baking soda, baking powder, pumpkin pie spice, espresso powder and salt. Slowly mix into the wet ingredients. Add in buttermilk, and mix just until combined. If adding chocolate chips or nuts, fold in.