Changed commandResult state change to logic, display as python in new st...

...ate