python: Add print_active_window_heirarchy example

The code looks good, and the example is small and focused. Thanks for it.