Attempt to port buzhug.sourceforge.net to Python 3.3