Add some Python 3 support to the examples