Writing automation scripts in Python for DevOps