Fix Py3k bug in loops example.