Updated myanalysis.py

After testing test_simulate_cmd.py version of simulate_cmd module,
added the changes to myanalysis.py version of simulate_cmd module.