fix Py3k bug in example