Patch by Urs Fleisch to fix under Python 3.2.

Apply patch provided by Urs Fleisch (https://github.com/pinard/Pymacs/issues/33#issuecomment-8212503) to fix under Python 3.2.