Can you kill the process int he bash script without knowing the PID, and only knowing the bash job ID (obtained with jobs for example)?
jobs
[1]+ Stopped python
I can have multiple python executables running, so killall python is not an option.