fit to py3k