new parm to select which frame the python script should be executed when run_per_frame is off: first or last frame