Updated SIM class script to check for IPython before running as main
Updated other code to reflect new test for IPython instance