Python script to know when KRL program has started and ended

Hi
I currently have a KRL project with programs and can execute them, is there a way of knowing which program is currently being run and also if the program has ended (i.e reached the END statement)

Any help in the python script would be appreciated, thanks in advance