Update cprint.py, fix control flow