undo link python