Revert "Python 3 compatibility"

This reverts commit 482626cb1d3a2c1508747d34eb8d1b78a8cfe774.
Python 3 compatibility