Since there's no easy way to eval in cmd.exe instead of outputting SET AWS_.... just set the environment variables inside Python (shutil.command("setx foo=bar")).
This adds them to the global OS wise environment variable namespace. It doesn't however update the current cmd.exe that you're in.