updating amc.py execute command with stderr if the execution failed