def debug_print_commands(flag):
 global _print_commands
 _print_commands = bool(flag)

def debug_print_commands ( flag ) : global _print_commands _print_commands = bool ( flag )
turn on/off printing of commands as they are executed .