Revert "for python 3"

This reverts commit 2754c85d329428027af42cb6fa88962cb79fc368.