Python realisation of basic Microsoft UI Automation functionality