Remove trailing spaces in cmd.py.