I have a python script that converts csv files into pipe delimiter files. If the total no of lines is above 7000, it creates new files, and headers of output files are also