def str_replace(data):
    for key, value in data.items():
        if isinstance(value, (str, unicode)):
            data[key] = value.format(**data)
String substitution of `data` dict
dataset/ETHPy150Open Anaconda-Platform/chalmers/chalmers/program/base.py/str_replace