Do NOT read a CSV file by splitting on commas. Python has a perfect CSV library built right in: https://docs.python.org/3/library/csv.html.
If you split on commas, your code will fail for quoted fields with commas in them.
If you split on commas, your code will fail for quoted fields with commas in them.