I fixed python traceback real quick
&amp;#x200B;

https://preview.redd.it/yqvg54ml9sn81.png?width=2000&amp;format=png&amp;auto=webp&amp;s=575484421b18464c240d3f384d3a1c7e3f4e3a34

    yourprog = "whatever.py"
    
    from subprocess import check_output, STDOUT
    
    def abrT(r):
      return r
      o = ""
      # I don't care about unreadable code I am writing this during lunch break
      for line in r.split("\n"):
        if "Traceback" in line:
          o += "Traceback:\n\n"
        elif "File" in line:
          a = line[line.find(", ")+2:] + "\n"
          a = a.replace(", in &lt;module&gt;", "")
          o += "  " + a
        elif ":" in line:
          o += "\n  " + line.split(": ")[0] + ":\n    " + line.split(": ")[1] + "\n"
        else:
          o += line + "\n"
      return o[:-1]
    
    result = str(check_output(f"python3 {yourprog}; echo -n", shell=1, stderr=STDOUT), 'utf-8')
    print(abrT(result))