Update command_status.py

Updation is done to fix few issues