Time to move into python
Replace link with function

Link destination was removed
source_file is used elsewhere