modified given aws python file for other region