fixed an invalid statement in sw3_cmd.py