Port to Python 3

latest commit cde9fceae5
Benjamin Danon authored