changed up how flask app is passed to s3