Python script to automate AMI backup of AWS EC2 instances