Fix for Python 3.2 - thanks Brian May. Closes #254