Python 3 compatibility of sqllite-cli tutorial.