modified script mode so that
- we can execute a python script instead of bash
- script running terminals will kill themselves when the window is closed