add delete_final_line.py