More on the Python cmd module - from pymotw3
cmd — Line-oriented Command Processors
Here is a link that explains some stuff that I apparently missed earlier, but it could also be that, since this is for Python 3, I could have skipped it, as, at the time, I needed to support Python 2 as well.
Anyway, the cmd — Line-oriented …