Fix for py3k