change checkpoint.py to 8.0 api