Interacting with Windows in Python