Number ipython checkpoints to avoid conflicts due to calling same functions multiple times. Cleanup of SGE and calculation of cores to use