Fixed bug that was appear in some versions of python.

- Still not entirely clear on why, as reported by Bill Cauchois,
  but some versions of python were getting errors due to an uninitialized
  local variable. This change corrects it in a way that will work in
  all pythons.

Auditors: benjy