Python script to convert CSV/TSV files