Fix the path.
Make prepare() compatible with older ROOT.

Make the creation of directories compatible with ROOT 5.32,
which is bundled with CMSSW.
Make string formatting compatible with older python.
Force conversion to int.

Needed for compatibility with older Python.
Fix fractions.
Add a batch script to train on SLURM.