Fixed Python API for sc.setCheckpointDir. Also other fixes based on Reynold's comments on PR 289.