BUg: fixing for py3k