python: Add print_active_window_heirarchy example

Ah ok sorry, I misunderstood you. That actually makes more sense. I will do it in markup if you have no objections to that. It makes it easier to read on gihub that way, I think.