Hello,
I think the version of python does not match. Please make sure that you are using python 3.x.
You can also check the following, in case the problem rises not from python version.
Based on the error, maybe the "output" gets different results for you, not compatible with the command in the line 38 of your "submitJob_local.py".
For example, when submitting job in our supercomputer, the output is similar to:
Submitted batch job 51922658
So, the 4th word (3rd for python since we start from 0) is the job id and it includes only numbers. Therefore, we can take it using the line presented in "submitJob_local.py"
jobNumber = int(output.split(' ')[3])
If the output printed on the screen after submitting any job on your supercomputer is different, you need to change this line based on your machine.
** It is important to only give integer numbers to the jobNumber.