Note to self: turn on the CLI debug this way:

python -m pdb [script]

That is all.