Automatic rope inserting machine