Flat file checker Python script