a better fix for the py3k issue