pyterm: fix NameError in SerCmd.do_save()