Make example Python 3 compatible

[ci skip]