Changes to run.py in accordance with AWS specs