Fixed small bug in wintoapp.py
Bad window ID's are now caught
Added STDIN support to the example, bugfixed, and improved