fix py3k bugf