Py3k fix, fixes #224