title: Python scripts output status (if failed or ran with success) in YML file
body: <p>do you know how can I have output logs when running a (my_script).py in a YML (CICD)?
  I'm working with AWS codepipeline and codebuild and when my YML file runs, the CICD doesn't know if the (my_script).py failed or not because only the subprocess is failing, for CICD the (my_script).py executes and closes, therefore the pipeline ran with success even when the (my_script).py failed.</p>