Fixing Python commands test cases to work even after removing Printf
(and using the new syntax for printing :-)