added support for py3k