def replace_strings(file_path, replace):
    """
    replace strings in a file

    :param file_path:
    path to file
    :param replace:
    dict of strings to replace. e.g:
    replace = {
        'dummy_app': 'new_app',
        'DummyApp': 'NewApp',
        'dummy-app': 'new-app',
    }
    """
    with open(file_path, 'r') as f:
        s = f.read()
        for item in replace.items():
            s = s.replace(item[0], item[1])
    with open(file_path, 'w') as f:
        f.write(s)
