Python program to read a text file and be able to select lines (the output is a text file with your selection)