Added use of Python logging to examples.