fix pull request #729 python 3 compatibility