Update command.py

integrated new command class style