Have you done this work?
For PascalABC this work:
elif language == 'pascal':
return_code = subprocess.check_output("pabcnetcclear tester.pas".split())
if return_code != b'OK\n':
raise Exception(" Compilation failed. Testing aborted ") exec_command = ["mono", "./tester.exe"]