Troubleshooting and Automation using Python