Python access to window controls