Use csv sniffer
We could use the csv.Sniffer to detect the dialect and the header.
https://docs.python.org/2/library/csv.html#csv.Sniffer
We could use the csv.Sniffer to detect the dialect and the header.
https://docs.python.org/2/library/csv.html#csv.Sniffer