In my mind, it would be worth to put this in a ```service class``` right away, even if that seems overkill for what is going on here. Something like:

    class DummyOscService(datadir=None):
        def __init__():
            ....
        def get_osc_prob_maps(ebins, czbins, deltam21,....):
            ...

I would then also put this service right away in its own file. That would e.g allow me to use all of your code, but just write another service to replace this one (e.g. one that graps data from a server, or does some interpolation, or calculates the values on the fly or what-have-you...)