First working version of BatchProfileLikelihood.py.