Stepic port to Python 3