Fixed Bug #1, now works under Python 3.