Apparently,
according to Matt Stone, they were banking on an Obama win rather than come up with an alternative episode. The only things that were up in the air aside from the results of the election were the victory and concession speeches. I was actually surprised they managed to capture the party atmosphere around Obama's victory.