Automation using python