python script to generate commands for remediation