Revert "Porting to Python 3"

This reverts commit 8771ed6b5a700c16a6c8cac98ac0dbcaa192ca77.