Python script for Amazon Web Services