Window select in python script

Hello defterGoose,
you may have a look at this thread.