def move_path(current_dir, new_dir, path):
    if current_dir[-1] != '/':
        current_dir += '/'
    if new_dir[-1] != '/':
        new_dir += '/'

    return path.replace(current_dir, new_dir, 1)
Move a path from one directory to another. Given the directory the path is
dataset/ETHPy150Open Lukasa/collectr/collectr/utils.py/move_path