Update interactive.py

  - Change the internals of 'runCommand()' so that 'exitCom()' is used within.