Added getCheckpoint and setCheckpoint functions to checkpoints.py