testing all examples, with corrections for Python3 support