https://www.lihpao.com/how-to-write-python-script-for-automation/