How To Write Python Script For Automation