cmds: lint Python files

Also fix all the accumulated lint in cmds.

Change-Id: I45d0104d5a1ed9f535cab72e422dbd17aa1f7c26
10 files changed